package com.woniuxy.direct.listener;

import com.woniuxy.pojo.TopicMail;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class DirectListener1 {
    @RabbitListener(queues = "DirectQueue1",ackMode = "AUTO")
    public void directListener(TopicMail topicMail){
        System.out.println("直连交换机监听第1个队列："+topicMail);
    }
}
